/* 
 * Copyright (c) 2019, CENTRIN.CIYUN.LTD. All rights reserved.
 */
package com.cory.admin.sys.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * 定时任务配置
 * 这里只做一些系统相关的任务，和业务相关的在运营台配置
 * @author xiongcong
 * @date 2019-03-20
 */
@Configuration
@EnableScheduling
public class SchedulerConfig {

    /**
     * 每天晚上3点
     * @author xiongcong 2019-03-20
     */
    @Scheduled(cron="0 0 3 * * ?")
    public void cronJob() {
        // 清除用户登录提示信息
        AdminConstants.MAP_LOGIN_TIP_MSG.clear();
    }
    
}
